﻿using Microsoft.AspNetCore.Http;
using Ocelot.LoadBalancer.LoadBalancers;
using Ocelot.Responses;
using Ocelot.Values;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Gateway.AuthorizationFilter
{
    /// <summary>
    /// 自定义负载均衡器
    /// </summary>
    public class CustomLoadBalancer : ILoadBalancer
    {
        public async Task<Response<ServiceHostAndPort>> Lease(HttpContext httpContext)
        {
            throw new Exception();
        }

        public void Release(ServiceHostAndPort hostAndPort)
        {

        }
    }
}
